import request from './request.js'
import globalData from '../utils/global'

// 根据身份证号获取信息
export function getInfoByIdCardApi(data) {
    return request.get('/api/v1/blue/user/get-info-by-idCard', data).then(res => {
        return res.data.data
    })
}

// 注销账号
export function logoutAccountApi(data) {
    return request.put('/api/v1/blue/user/logout-account', data).then(res => {
        return res.data.data
    })
}

// 提交注销申请
export function applyRecorAddApi(data) {
    return request.get('/api/v1/blue/user/check-idCard-phone', data).then(res => {
        return res.data.data
    })
}